package edu.whu.puppygo.entity;

import edu.whu.puppygo.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.OneToMany;
import java.util.List;

/**
 * @author guanruwang
 * @date 2023/11/14$
 */
@EqualsAndHashCode(callSuper = true)
@Entity
@Data
public class Conversation extends BaseEntity {

    @ApiModelProperty(value = "用户Id")
    private long userId;

    @ApiModelProperty(value = "会话名称")
    private String name;

    @OneToMany
    private List<Fragment> fragment;

    @ApiModelProperty(value = "是否结束")
    private boolean isEnd = false;

    @ApiModelProperty(value = "PetId")
    private Long petId;
}
